import axios from '../axios'

/*
 * 权限数据接口
 */

// 获取权限列表
export const getAdpicList = (data) => {
    return axios({
        url: '/adpics',
        method: 'get',
        data
    })
}

// 新增权限信息
export const saveAdpic = (data) => {
    return axios({
        url: '/adpic',
        method: 'post',
        data
    })
}

// 编辑权限信息
export const updateAdpic = (data) => {
    return axios({
        url: '/adpic',
        method: 'put',
        data
    })
}

// 删除权限列表
export const deleteAdpic = (data) => {
    return axios({
        url: '/adpic',
        method: 'delete',
        data
    })
}
